﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JiveMessenger.ImagePreview.Imgur
{
    public enum ImgurVideoFormat
    {
        mp4,
        WebM
    }
    public class ImgurImage
    {
        public string id { get; set; }
        public string title { get; set; }
        public string description { get; set; }
        public int datetime { get; set; }
        public string type { get; set; }
        public bool animated { get; set; }
        public int width { get; set; }
        public int height { get; set; }
        public int size { get; set; }
        public int views { get; set; }
        public object bandwidth { get; set; }
        public bool favorite { get; set; }
        public object nsfw { get; set; }
        public object section { get; set; }
        public string link { get; set; }
        public string mp4 { get; set; }
        public string webm { get; set; }
        public string gifv { get; set; }
    }

    public class ImgurData
    {
        public string id { get; set; }
        public string title { get; set; }
        public string description { get; set; }
        public int datetime { get; set; }
        public string cover { get; set; }
        public int cover_width { get; set; }
        public int cover_height { get; set; }
        public int width { get; set; }
        public int height { get; set; }
        public object account_url { get; set; }
        public string privacy { get; set; }
        public string layout { get; set; }
        public int views { get; set; }
        public string link { get; set; }
        public string mp4 { get; set; }
        public string webm { get; set; }
        public string gifv { get; set; }
        public bool favorite { get; set; }
        public object nsfw { get; set; }
        public string section { get; set; }
        public int images_count { get; set; }
        public List<ImgurImage> images { get; set; }
    }

    public class ImgurInfo
    {
        public ImgurData data { get; set; }
        public bool success { get; set; }
        public int status { get; set; }
    }
}
